package com.ly.heart.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.ContractProcureEntity;
import com.ly.heart.domain.dto.ContractOrderMaterialDetailDto;
import com.ly.heart.domain.dto.ContractProcureOrderDto;
import com.ly.heart.domain.vo.ContractOrderMaterialDetailVo;
import com.ly.heart.domain.vo.ContractProcureOrderVo;

/**
 * 采购合同;1:采购;2:行政;Service接口
 * @author wutao
 * @date 2024-05-31
 */
public interface IContractProcureService extends IService<ContractProcureEntity> {

    /**
     * 查询采购合同;1:采购;2:行政;
     * @param id 采购合同;1:采购;2:行政;ID
     * @return 采购合同;1:采购;2:行政;
     */
    ContractProcureOrderVo selectContractProcureEntityById (String id);

    /**
     * 查询采购合同;1:采购;2:行政;列表
     * @param contractProcureEntity 采购合同;1:采购;2:行政;
     * @return 采购合同;1:采购;2:行政;集合
     */
    AjaxResult selectContractProcureEntityList (ContractProcureEntity contractProcureEntity);

    /**
     * 新增采购合同;1:采购;2:行政;
     * @param contractProcureOrderDto 采购合同;1:采购;2:行政;
     * @return 结果
     */
    AjaxResult draft (ContractProcureOrderDto contractProcureOrderDto);

    /**
     * 新增采购合同;1:采购;2:行政;
     * @param contractProcureEntity 采购合同;1:采购;2:行政;
     * @return 结果
     */
    AjaxResult submit (ContractProcureEntity contractProcureEntity);

    /**
     * 修改采购合同;1:采购;2:行政;
     * @param contractProcureOrderDto 采购合同;1:采购;2:行政;
     * @return 结果
     */
    AjaxResult updateContractProcureEntity (ContractProcureOrderDto contractProcureOrderDto);

    /**
     * 批量删除采购合同;1:采购;2:行政;
     * @param ids 需要删除的采购合同;1:采购;2:行政;ID
     * @return 结果
     */
    AjaxResult deleteContractProcureEntityByIds (String[] ids);

    AjaxResult close (String id);

    AjaxResult cancel (String id);

    /**
     * 根据采购合同对象List查询物料明细
     * @return
     */
    AjaxResult queryMaterial (ContractOrderMaterialDetailDto contractOrderMaterialDetailDto);

}
